import d1
import d2

test_list = [d1, d2]


def test1():

    result = [0, 1, 9, 16, 100]
    for d in test_list:
        l = [-4, -1, 0, 3, 10]
        assert d.Solution().sortedSquares(l) == result


def test2():
    l = [-7, -3, 2, 3, 11]
    result = [4, 9, 9, 49, 121]
    for d in test_list:
        assert d.Solution().sortedSquares(l) == result


def test3():
    l = []
    result = []
    for d in test_list:
        assert d.Solution().sortedSquares(l) == result
